run though main code
run though main code