some forgetten type casting from java6 to java7 syntax changed