fixing stock ordering