delete double block rectangular function