location controller working