added gem elements problem with code