introduced level curve functionality