set variable for result