formatting and cleanup