add gem, some math