added curve option to loops