Thank you both. Did you mean like this? Or in the function itself? the sm5 error is gone. Just want to be sure