fixed errors in output mapper