shorten the code