wrong direction of switch reading pin