removed unnecessary g flag