this function can become const