switch to a case statement for OS logic