provide only one public spectrum writing function to ease use