update extract function