added "reset" function and "init_actiion" method