added gyroscope functionality