added logic for fill lot number