simplified map_input map_output