added init code