added relation to query