call during initialization