using noOfColors