right the function must be of of const type