for @miner146 I was rushed for time so there aren't much details but I guess it works sorry for the long wait