implemented joinable queue for insert operations