remove un-needed variables