changed to use the master prior days