fix library function syntax