made get methods return the correct type