fixed for logging