Updated associate() method