added some utils