made data read from input actually