put the util funcion in