started working on constraint system