used lubridate on date function