loop lablels chunks + fix casting