added power log function