completed and added log-time power function