short form of defining functions