finished first version of static mining