removed redundant variable