fixed difficult constraint problem