applied some java code standarts