returning the attrs object didn't work