fixed the problem with constraints having to be applied twice, wrote another constraint to test (it worked), I am starting to refactor, first by putting things in different files, I need to refactor/comment before I begin to forget how it all works