get gem to function