working implementation for GEMMA
changed accel threshold