fix medium formatting and readability