corrected wrong code.1

corrected wrong code.2