multiple input mechanism added