take out unnecessary gems