adding constraints to demo