fixed `points` being redeclared