add jimmy's code for comparison