load_input_x in ps.hpp