parsing encoder data