adding missing function to the simulator