removed the decode_str function...