removed java warning