added more util functions