added graphic accelerometer stuff