added support to fix first and last items up to lap mq