made some function