fix contraints