removed debugging fields and method
created a variable for casting of log2 params to double