corrected the code