removed logging statements