correcting logging