make sure to pass a file name to the invalidate method