updated cal script