some comments added for the trigger part