basic tilt detection added