updated doLogy