extracting patches faster now