updated transformer to be able to transform permission to single mask