typo on logging method