implemented un/constraint to hook functionality