Debugged the functions, now printing, but not the right list