removed extract function, I'll replace it eventually