changed order of return values in array