removed log
code cleanup
function introduced