fixed notice msg and add record bugs