list display problems in main