solved problems with parameters