clean up init method