the skeletal frame of its great legs still clung to the edge of the roof of citadel tower , and its shattered , blackened carapace hung precariously off the side of the building , sheared hydraulics and frayed cables being all that held it from tumbling to the presidium below .