refactoring Actor