moved data retrieval from datafile to actions_helper