changed write mapper_in