input function: insert is the default mode