fix the function definition
move the library