update const function