add explicit return to code blocks