added lookup, changed array