removing unused object fields