switch scope of member parameters to private