fixed null date bug
adding internal storage: