derived var integration, error handling, time var code