moved custom rect to model