oops. should unit test this.