adding theta join