return values from arrays