added temporary arrays