changed java compiler to 1.6 compatibility