infer SKETCH and SOURCES