loop break after 10