fixed bug  in utility