java6 compatibility