use available standard library function instead