flush in action not in method