misnamed variable pts -> points