only check ending