changed initialization routines