try an alternative implementation for control input, in case callback function is causing issue, seems promising from testing