took out count from code