writing is for tracking statistics