trying to get main to work