adding MAX_SEQ