refactored accelerometer_buffer to accelerometer_filter