array not filling