Modify and Add Input and output

Modify some context and Add context of Input and output