adding function that was missed by git for some reason