almost have arrays
fixed bug