solve issue with constraints