fix problem with length of field
sort holding location rules by priority
implement holding location rules