use constraints function from status in constraint function