much better solution to the collapse graphic