list modifying is having trouble (see line 331) - going to write functions to handle list