code cleanup

removed redundant variable.