check vs null was a bad idea, i dont really need check parentId btw