changed default value for instances from 0 to 1 in order to simplify
analysisis and avoiding to divide to 0.