implemeted the point operations