change sample to curses