added threshold restrictions from 0 to 100 for %