added opacity to stop fucntion