fixed bracing issue
added inline begin