remove unnecessary ivars