removed some Java warnings