updating generator to run callback inside the fadeOut function