added join lists function