add in 2nd flag and method for flag creation