fixed make error, changed flag type from int to boolean