corrected the ClassCastException from Long to String