discR, discL are still wrong. removed some useless code