dodoc should probably be outside the function, they do not change