init function where it belongs