add a new function in resource file