setting correct params inheritance and variable references