Take out log function