make java7 compatible