updated the LPCsim code again for confirmation