added exclude list
changed max to -1