small fix and remove unneeded variables
Merge pull request #253 from jfgodoy/patch-1

small fix and remove unneeded variables