removing count variable