added the functions, still will add the comments in the next one