removing Java v7 syntax