add helper function for association analysis