implemented compareLog