Solved all the function and can be use