prints list to console