fix .each outside of case