changed code to pull for single day