small but beautifying refactor