account for h being undefined