working on EndingProcessor