now have problems with constraint