easy way for logging result