changed result format for creating instances also