add a basic hook function
add basic hook