added little endian that probably doesnt work