added init functions