adding util file reorganizign code