range not working

left frontelement isnot working or switch not working