reorganising inline list patterns