problem 8 updates, removed dependency on System and ternary block that doesn't do anything