joins and associatied joins working