added loop options