structure and authentication done