fix assignment issues

run checkstyle and findbugs to test the program.