use available library function

Missed this earlier