added upper bound for bonus