ah i have found the problem you are right it will read the highest value but all the groups the user is a member of must have a value higher than 0 if it is 0 it will take that as the highest ( 0 usual means unlimited) but i didn't want that lol thanks for your help