this is the copy of others code of webmagic