reducing sample data to two points