fix formatting and add more explanation