adding direction sensor