add spy example
change register order