replaced corners method