removes unnecessary ivars