the local variable docs should be updated here too then