functions of action and service for master