added problems

found some bugs too