add point logic