remove some unnecessary variables and add a comment