the max function, it returns the maximum value in the list rather than the index associated with that value. How do I return the index? thanks Anil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com