Jointer extraction function

now it's dynamic