shorten code example