Use right ruby each funcion