removed logging code causing fatal error