msf code that needs to be corrected