[PARTIAL] added function to remove log