cleaned up code in bestbefore