forward declare variable for deregistration function