nit: you can probably inline this.