adding util functions