fixed encoder sampling