code if and else for luizkrlos, fix places for me