benchamsrk docs
use new function
code tidy - now use single function