replaced util functions