jdk1.6 compatibility