change to detect hook