editing files for the correct role