run once sub and min