added latency compensation, fixed amt for now