fixed count in remove method