solved error in purhcases