added util functions