put result into memory