changes failing return value to undefined