modify category first