passing flash as an argument