separation of functions related to the scenarios