removing useless variable