wrong forEach var inside it's callback