wrote setCurrent