Thanks to dbaupp, understand the borrowck error and got it fixed