better commenting and reverse data to dispaly correctly