move an initializtion to the right place