added stuff to cond var