these could be const functions.