Timing gear on cam removel

what is trick of removing gear,in car.i have even split gear and metal hub,when i try to pry,shaft comes too.pontiac1990 2.5 eng.