resolve case for default makefile as well as changing loop conditions)