Removing undeeded variable