correctly with with arrays of joins