added redirect variable