changed file permissions and updated the mapper