module to make stability plot