corrected working original version
corrected working original version