founded the solution, just need to implement it