optimization of coin collision