intances generation fixed