shorten the codes