reformatting angular structure