solved code problems.