another change from modifier_state() to main_modifier_state()