modified instance generator for model testing