adding methods to solve the problem