[MODIFIED] printing logs