end of s11 algo