abit refactor to utilise the fileItem model object