use joins instead of includes