fixing utlity code