input output optimization