daily sale fix
cleaned up code