issue 2: java 6 compatibility