added flags and text arrays
finished arrays