add solve for foundation