changed order and added .loops