change calling method in order to logging