made compilable with jdk 1.6
made compilable with jdk 1.6