change the structure of bean