fixed minor bugs
experimental method