added modified seg