return list instead of print