removed debugging for corners. moved it to edges