how to extend a list