changed utils file and removed duplicate functions