taking log