useful code to compare dynamics