tiny simplifying refactor