removed logging function.