include extraction function