add rect fitting