fixes failing build but is this correct? review pls.