seems redundant since it could fail and the failure isn't handled. should ask real web devs how they handle this.