added new functionality to simulation