aded function with *args input