wells and re-arrange