formatting and updating