in the middle of wall detection