another form to solve the problem