attempt to fix errors due to incompatible java