remove log if's