put result into the function