loading program into memory