main cleaned