modified display core number script