shorten example code