added some constraints