remove prints and file writes