working on using constraints