applied 1st solution