log and power works