removed encoder for clarity