some basic changes

I have changed the usage of the functions, remove the arguments created
by resp objects.