added placeholder for calculating flags