added docs function style