functions calculated on keyup of function text