adding flow for strict type checking