removal of useless var