add comments and function body