better way of calculating points