updating get methods with optional types