Update function

Fixed spacing and formatting.