made the parameters and object arguments more user friendly