function prototype method creator method