refactor set to gauge