changed code that generates cases for versions