change ref block order and