removing unneeded java code