delete compatibility with java6