added discont feature