added size stuff and accelerometer