changed order of parameters in __construct