returning the list instead of printing the result
cleanup