changed log to plog