added calendar logic methods