first two solutions