classification in chunk loop