keep regions in order of input
moved runline code a little