one more version about points counting