Used Array and reduced reptition