added calendar binary search