remove instance variables from serializer