added function comparation