updating/formatting code