updated documentation
remove unnecessary begin block