adding loop