checking for obstructions