Apparently i forgot to ad the if for err