adapted marc's code for crowd lang