adding to the utils. Not tested yet