fixed some of the orderEntry functions