rewrite utils class