corrected past tense name
made present codes more concise
limitei âmbito e renomeei variáveis