-g option added