added changes related to pits count from user