adicionando as chaves nos ifs