sets up constaints