the min position issues solved. added new featuresfor writing