added default arguments and its tested