added code for core aware marking