preprocess Chgrp to different groups separately