changed mode 16 to 18