add store as default scope of loop function