added comments to the functions heaeders