dreaming about ex..

i keep having terrible dreams about my ex partner they seem so real it makes me miss him and makes me sad the whole day how can i stop these...