create init functions