Change res to input