created init function