fix ends with implementation