end of s07 algo