make the code a bit nicer