cleaned up object and officialdocs function