refactor get method and version property