make code a bit nicer