adding loop input option