Parameter refactory

thanks for the tips @giggio, new PR :)
@julianosaless I have an error here when body is null. Can you check ?