changed json aruments to own object