don't understand why doc not working