use translate_inputs subroutine instead of implementing our own