trying to correct "undefined"