changed json aruments to struct