add a comment for refactorying the code