replaced instance variable with local variable in atendimentos