removed code from Main
updated