init function contents
main and testcase functions