added global keywords to decoding