do not execute the loop when count is 0