added restriction to the activities model