add validation check, store labels