update gate hook