it cannot be an object here. the code above only works for strings here