moved order processing into filled function