made it compatable with jdk 6
campatable with java6