same function style as cachemeans function

to be corected before 4/28