updated to target and source compatibility to Java 1.6