added decode_same