merged opening and closing into the single parameter opening