init for prototype