add simulated an in funcitons