added ability to input data