replaced corner with rectangle