fixed logger method