fixing the arrays