remove unecessary variable in object