added prototype test function