added function to prepend node to list