modified the inputs for ch