change method to generate regression points