added constrains