trying to resolve count issue