init call on the end of model