working on ncurses