improve join performance