remove extract function