update comment
move variables
more detailed comment