fix for no_of_instance ocurring as 0