added explanation to hook methods in comments