date argument added to remove error