trying to fix bugs
add run to the main