fix constraints for public