removing logging code