verify function added ( need to be tested)