corrected correct function (ironic right)?
debug fix