removing explicit dependency on java7