formation generation correction added