changed library to java 6