working example for 2 versions