revrted to using strings instead of arrays