add const parameter to sub function
speed commit