splits the functions for input and simulation and tweaks the input part