fixed warnings. checkstyle and findbugs