check prototype