initialization in separate function