check for admin sample code