solved the list problem in a separate file