shorten boilerplate code