work for JRE 1.6