remove unnecessary instance variables