updated with glom in spark