removed count code