removed Java warnings