fixed example code for 5.3 compat