stole some formatting stuff