smallerized the problem to avoid memory issues