refactoring actor and building constructors