add point functionality