renamed mode to inputmode