refactor to a valid gem