define sequence utilities, optimization utitlities