activate hook