+ functions for saving input data