added function of boolean array for arbitrary dates just need to change one line once feature is implemented