imporving the rsst function
merge