took more querys from loops