added a standard loop