filtering accelerometer data

thanks for that - the bitmath confused me for a bit...