added some business logic to action model