define a preflight method