removing redundant variable