cleaned up code formatting.