now everything is compatible with java 1.6