formatted code for servicability