fix Out of Code detetction indexerror
set a proper name to function
revert rst snippets