modified utils file