final version_corrected