call init and update functions