added orientation sensor