add rectangular fit