improve compute and input mode