update to new init method