Added initial code
changed Global list ad distinct to be case sensitive