shorten the code a bit more - folding single-use values