pay attention to log( int ) and log( double )