removed logging code