changed if count = 0