removed code not related to .each()