add a number comparsion function