add logic for discussions