using the flag instead