added flags for var and const