final modification of gem