v3

removed the legacy code from main.cpp