made parameter names same as object variable names