adding rect prism fitting naive