working with solve