added the decode method for short values