removed superfluous array creation