adding script to measure characters' occupancy based