define new methods to handle string decode