change interp. in function to purpose