deleting useless duble generics (java 8)