updated instance generator