removed buying code