added a function pointer for the changed functions