You should probably drop the data local here and just do a map over @entries.