getting rid of unecessary variable

code review fixes

issue #38