almost complete admin part(sam)