edit initialize routine