renamed/commented util functions