can this function be const?