not finish yat collision algorithm