removing logging from insert mode