bug in constraints fixed
first part of sector analysis done