use the 'fullfile' function to build the file name and make it compatiable to MAC