fixed initializer code for general usage