make code a bit nicer with runC function