code reference to input should be indata