mode 2 not working properly