debugging, error with using log_map