only replace inputs which are defined