save join block in variable