add a function, which is OK