working on constraining search space for faster generation