fixed purchase undo costs
dead code removed