wrong use of each()