improve ending_effect