make a list instead of printing