solution for some of problems in advanced topic