preparing for gem