added the shake sensor