remove private writers and use instance variables to remove warnings