added logging
removed unnecessary print statments