adds method doc